package com.zam.utils.DateUtil;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author talent_dog
 * @Date 2024/4/2 7:29
 * @Version 1.0
 */
public class DateUtil {
    public static LocalDateTime getDateTime() throws Exception {
        Date date = new Date();
        String nowDateTime = DateTransformUtil.formatDataTime2(date);
        return DateTransformUtil.stringToDataTime(nowDateTime);
    }
}
